<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ&#xe615;</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
        
	      <input class="layui-input" placeholder="开始日" value="{:I('start')}" name="start" id="start">
	      <input class="layui-input" placeholder="截止日"  value="{:I('end')}" name="end" id="end">
          <input type="text" name="uid"  value="{:I('uid')}" placeholder="请输入团长uid" autocomplete="off" class="layui-input">
          <div class="layui-input-inline">
            <select name="type">
              <option value="0" <php>if(I("type")==0) echo 'selected' </php>>选择类型</option>
              <option value="1" <php>if(I('type') == 1) echo 'selected'</php>>收入</option>
              <option value="2" <php>if(I('type') == 2) echo 'selected'</php>>支出</option>
            </select>
          </div>
          <button class="layui-btn" id="search"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
		  <button class="layui-btn" id="export"  lay-submit="" lay-filter="" title="导出"><i class="layui-icon">&#xe62f;</i>导出</button>
        </form>
      </div>
      <xblock>
        <button class="layui-btn layui-bg-red" onclick="delAll('','{:U('del')}')"><i class="layui-icon"></i>永久删除</button>
        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
		    <th>
		        <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
		    </th>
            <th>ID</th>
            <th>团长Id</th>
            <th>团长信息</th>
            <th>类型</th>
            <th>金额</th>
            <th>变动时间</th>
            <th>变动信息</th>
            <th>当前余额</th>
          </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
          <tr>
            <td>
          		<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo['id']}'><i class="layui-icon">&#xe605;</i></div>
			</td>
            <td>{$vo['id']}</td>
            <td>{$vo['uid']}</td>
            <td><img src="{$vo['acv']}" width=40 height=40>{$vo['name']}|{$vo["mobile"]}</td>
            <td>{$vo['type']}</td>
            <td>{$vo['money']}</td>
            <td>{$vo['addtime']|date='Y-m-d H:i:s',###}</td>
            <td>{$vo['info']}</td>
            <td>{$vo['balance']}</td>        
          </tr>
        </volist>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
<script>
	$(function () {
	    var searchurl = "{:U('index')}";
	    $('#search').click(function () {
	
	        $('form').attr('action',searchurl);
	    });
	
	    var exporturl = "{:U('exportorder')}";
	    
	    $('#export').click(function () {
	
	        $('form').attr('action',exporturl);
	    });
	})
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });

    </script>

<include file="Public/footer"/>

